package com.prime.tutorial.moviestore.dao;

import com.prime.tutorial.moviestore.domain.CustomerGroups;
import com.prime.tutorial.moviestore.domain.Customers;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: vasylja
 * Date: May 8, 2010
 * Time: 2:43:16 PM
 *
 * @author vasylja
 */
public interface CustomerDAO extends GenericDAO<Customers, Long>{
    public List<Customers> findByLastName(String lastname);

    public List<Customers> findByLogin(String login);

    public List<Customers> findEnabled();

    public List<Customers> findByGroup(CustomerGroups customerGroup);

//    public Boolean checkIfUserCouldAddNewUsers(Users user);

     public List<Customers> findOnlineCustomers();
}
